package com.cyj.springaop1.anno;

import org.aspectj.lang.annotation.*;
import org.springframework.stereotype.Component;

/**
 * @description:
 * @Author C_Y_J
 * @create 2021-03-03 09:56
 **/
@Component("aspect")
@org.aspectj.lang.annotation.Aspect
public class Aspect {

    @Before("execution(* com.cyj.springaop1.anno.*.*(..))")
    public void before() {
        System.out.println("前置增强");
    }

    public void afterReturning() {
        System.out.println("后置增强");
    }
}
